$('.myOrder h4').on('tap',function(){
	var $p=$('.myOrder p');
	var $h4=$('.myOrder h4 span');
	if($p.css('display')=='none'){
		$p.slideDown();
		$h4.removeClass('mui-icon-arrowup');
		$h4.addClass('mui-icon-arrowdown');
	}else{
		$p.slideUp();
		$h4.removeClass('mui-icon-arrowdown');
		$h4.addClass('mui-icon-arrowup');
	}
})


$('.payMenthod p').on('tap',function(){
	if($(this).hasClass('active')){
		$(this).removeClass('active');
	}else{
		$(this).addClass('active');
	}
})

$('.security p').on('tap',function(){
	var $slideBox=$('.security ul');
	if($slideBox.css('display')=='none'){
		$slideBox.slideDown();
	}else{
		$slideBox.slideUp();
	}
})

$('.security ul').on('tap','li',function(){
	$('.security ul').slideUp();
})


$('.select-delivery').on('tap','li',function(){
	$('.select-delivery li').removeClass('active');
	$(this).addClass('active');
})


$('.agree-protocol').on('tap',function(){
	if($(this).hasClass("active")){
		$(this).removeClass('active');
	}else{
		$(this).addClass('active');
	}
})



$('.coupon h4').on('tap',function(){
	var $listBox=$('.coupon .list');
	var $img=$('.coupon h4 span img');
	if($listBox.css('display')=="none"){
		$listBox.slideDown();
		$img.attr('src',MPJ.base+'/resources/images/icon/delivery-jt-up.png');
	}else{
		$listBox.slideUp();
		$img.attr('src',MPJ.base+'/resources/images/icon/delivery-jt-down.png');
	}
})



$('.confirmBtn .mui-btn').on('tap',function(){
	location.href=MPJ.base+"/pages/order/confirm-summary.jsp";
})
